package gd.qaq.blue.flauntitem;

import gd.qaq.blue.flauntitem.cmd.FlauntCommands;
import gd.qaq.blue.flauntitem.listener.KeyListener;
import org.bukkit.Bukkit;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.plugin.java.JavaPlugin;

import static gd.qaq.blue.flauntitem.util.PluginHelper.loadData;

public final class FlauntItem extends JavaPlugin {
    public static FileConfiguration config;
    public static FlauntItem plugin;

    @Override
    public void onEnable() {
        // Plugin startup logic
        plugin = this;
        config = loadData(plugin);
        Bukkit.getPluginCommand("flaunt").setExecutor(new FlauntCommands());
        Bukkit.getPluginManager().registerEvents(new KeyListener(), this);
    }

    @Override
    public void onDisable() {
        // Plugin shutdown logic
    }


}
